package sk.stuba.fiit.repka.dp.owl.gui;

import java.awt.GridLayout;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;

import sk.stuba.fiit.repka.dp.utils.VerticalLabelUI;

public class InitialOWLPanel extends JPanel {

	/**
	 * Create the panel.
	 */
	public InitialOWLPanel(MainPanel parent) {
		setLayout(new GridLayout(1, 0, 0, 0));
		
		JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.LEFT, JTabbedPane.SCROLL_TAB_LAYOUT);
		add(tabbedPane);
		
		JLabel classLB = new JLabel(" Class ");
		classLB.setUI(new VerticalLabelUI());
		JLabel dataPropLB = new JLabel(" Data Properties ");
		dataPropLB.setUI(new VerticalLabelUI());
		JLabel objPropLB = new JLabel(" Object Properties ");
		objPropLB.setUI(new VerticalLabelUI());
		JLabel indiLB = new JLabel(" Indiduals ");
		indiLB.setUI(new VerticalLabelUI());
		
		ClazzPanel clazzPanel = new ClazzPanel(parent);
		tabbedPane.addTab("Class", null, clazzPanel, null);
		
		DataPropPanel dataPropPanel = new DataPropPanel(parent);
		tabbedPane.addTab("Data Properties", null, dataPropPanel, null);
		
		ObjectPropPanel objectPropPanel = new ObjectPropPanel(parent);
		tabbedPane.addTab("Object Properties", null, objectPropPanel, null);
		
		IndividualPanel individualPanel = new IndividualPanel(parent);
		tabbedPane.addTab("Indiduals", null, individualPanel, null);
		
		tabbedPane.setTabComponentAt(0, classLB);
		tabbedPane.setTabComponentAt(1, dataPropLB);
		tabbedPane.setTabComponentAt(2, objPropLB);
		tabbedPane.setTabComponentAt(3, indiLB);
	}

}
